<!doctype html>
<html>
    <head>
		<title><?php echo $title; ?></title>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		<link rel="stylesheet" type="text/css" href="<?php echo url('/assets/css/layout.css'); ?>"/>
		<script type="text/javascript" src="<?php echo url('/assets/js/jquery.min.js?'); ?>" charset="utf-8"></script>
		<script type="text/javascript">
			var SITE_URL = "<?php echo SITE_URL; ?>";
		</script>
    </head>
    <body>

		<div class="main-navigation">
			<ul>
				<li><a href="<?php echo url('book'); ?>">书架</a></li>
				<li><a href="<?php echo url('plan'); ?>">读书计划</a></li>
				<li><a href="<?php echo url('user'); ?>">用户</a></li>
				<li><a href="<?php echo url('permission'); ?>">权限</a></li>
				<li><a href="<?php echo url('chat'); ?>">聊天</a></li>
				<li><a href="<?php echo url('work'); ?>">网站</a></li>
				<li><a href="<?php echo url('ftp_server'); ?>">Ftp服务器</a></li>
				<li><a href="<?php echo url('ftp_project'); ?>">Ftp项目</a></li>
				<li><a href="<?php echo url('ftp'); ?>">Ftp</a></li>
				<li><a href="<?php echo url('auth/logout'); ?>">安全退出</a></li>
			</ul>
		</div>
		<?php $error = getFlash('error'); $success = getFlash('success');?>
		<?php if(!empty($error)):?>
		<div class="error"><?php echo $error; ?></div>
		<?php endif;?>
		
		<?php if(!empty($success)):?>
		<div class="success"><?php echo $success; ?></div>
		<?php endif;?>
		<div class="main-content">
			<?php require($template); ?>
		</div>
    </body>
</html>